/**
 * 
 */
package com.kathez.entity;

/**
 * Abstract implementation of the KathezEntity
 * All the Entity objects in the Kathez application should extend this class  
 * 
 * @author Balaji T
 *
 */
public abstract class AbstractKathezEntity implements KathezEntity {

	/* (non-Javadoc)
	 * @see com.kathez.entity.KathezEntity#getDataOpsSuccess()
	 */
	@Override
	public boolean getDataOpsSuccess() {
		return this.dataOpsSuccess;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.KathezEntity#setDataOpsSuccess(boolean)
	 */
	@Override
	public void setDataOpsSuccess(boolean success) {
		this.dataOpsSuccess = success;		
	}
	
	private boolean dataOpsSuccess;
	private String DAOErrorCode;
	private String DAOErrorMessage;
	private String businessErrorCode;
	private String businessErrorMessage;
	private boolean businessOpsSuccess;

	/* (non-Javadoc)
	 * @see com.kathez.entity.DAOOperable#getDAOErrorCode()
	 */
	@Override
	public String getDAOErrorCode() {
		return this.DAOErrorCode;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.DAOOperable#getDAOErrorMessage()
	 */
	@Override
	public String getDAOErrorMessage() {
		return this.DAOErrorMessage;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.DAOOperable#setDAOErrorCode(java.lang.String)
	 */
	@Override
	public void setDAOErrorCode(String errCode) {
		this.DAOErrorCode = errCode;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.DAOOperable#setDAOErrorMessage(java.lang.String)
	 */
	@Override
	public void setDAOErrorMessage(String errMsg) {
		this.DAOErrorMessage = errMsg;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.BusinessOperable#getBusinessErrorCode()
	 */
	@Override
	public String getBusinessErrorCode() {
		return this.businessErrorCode;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.BusinessOperable#getBusinessErrorMessage()
	 */
	@Override
	public String getBusinessErrorMessage() {
		return this.businessErrorMessage;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.BusinessOperable#getBusinessOpsSuccess()
	 */
	@Override
	public boolean getBusinessOpsSuccess() {
		return this.businessOpsSuccess;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.BusinessOperable#setBusinessErrorCode(java.lang.String)
	 */
	@Override
	public void setBusinessErrorCode(String errCode) {
		this.businessErrorCode = errCode;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.BusinessOperable#setBusinessErrorMessage(java.lang.String)
	 */
	@Override
	public void setBusinessErrorMessage(String errmsg) {
		this.businessErrorMessage = errmsg;
	}

	/* (non-Javadoc)
	 * @see com.kathez.entity.BusinessOperable#setBusinessOpsSuccess(boolean)
	 */
	@Override
	public void setBusinessOpsSuccess(boolean succFlag) {
		this.businessOpsSuccess = succFlag;
	}
}
